
import http from '@/utils/http.js'

export function getAddressList(uid) {
  return http({
    url: `/order/api/address/getByUid/${uid}`,
    method: 'get'
  })
}

export function addAddress(data) {
  return http({
    url: `/order/api/address/addAddress`,
    method: 'POST',
    data,
  })
}

export function updateAddress(data) {
  return http({
    url: `/order/api/address/updateAddress`,
    method: 'POST',
    data
  })
}
export function updateAddressStatus(id, status) {
  return http({
    url: `/order/api/address/updateAddress/${id}/${status}`,
    method: 'get',
  })
}

export function delAddress(id) {
  return http({
    url: `/order/api/address/deleteAddress/${id}`,
    method: 'get'
  })
}
